package Mr.Right.util.enchance;

import java.beans.PropertyVetoException;

import com.mchange.v2.c3p0.ComboPooledDataSource;

public class C3P0Pool {

	public static ComboPooledDataSource dataSource = new ComboPooledDataSource();
	static{
		try {
        	dataSource.setDriverClass("com.mysql.jdbc.Driver");
    	  } catch (PropertyVetoException e) {
    	   e.printStackTrace();
    	  }
    	  dataSource.setJdbcUrl("jdbc:mysql://192.168.0.221:3306/mr_right");      
    	  dataSource.setUser("root");      
    	  dataSource.setPassword("happy_muchun");   
    	  dataSource.setMaxPoolSize(10);
    	  dataSource.setMinPoolSize(5);
    	  dataSource.setAutoCommitOnClose(false);
	}
	private C3P0Pool(){}
}
